package jupiter.node;

import java.util.regex.Pattern;

/**
 * Helper for getting data out of an address in the form
 * node#domain@jabbify.com/session
 * 
 * @author Justin
 *
 */
public class Address {
	
	private static Pattern domainp = Pattern.compile("https?://(?:www\\.)?([^/]*)([^#\\?]*)");
	
	
	private String address;
	
	
	
	public Address(String a){
		address = a;
	}
	public String domain(){
		return "jmvc.com";
	}
	public String node(){
		return "hank";
	}
	public String toString(){
		return address;
	}
}
